home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _9B07FBE2635843D4B731B72E9176FD39 < prev    next >
Encoding:
Text File  |  2003-07-23  |  3.8 KB  |  112 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3.     <head>
  4.         <script language="JavaScript" src="whver.js"></script>
  5.         <script language="javascript">
  6.             var gbTopicLoaded = false;
  7.             var gnTryCount = 0;
  8.             function UniqueID() {
  9.                 return parent.UniqueID();
  10.             }
  11.             function DoCommand(cmd, param) 
  12.             {
  13.                 if( (parent!=this) && (parent.parent.DoCommand) )
  14.                 {
  15.                     parent.parent.DoCommand(cmd, param);
  16.                 }
  17.             }
  18.             function FrameLoaded()
  19.             {
  20.                 if (window.frames["Navigation Pane"].innerWidth <= 0 || window.frames[0] != window.frames["Navigation Pane"])
  21.                 {
  22.                      window.location.reload();
  23.                 }
  24.             }
  25.             function CorrectFrame()
  26.             {
  27.                 var curNavLoc = window.frames["Navigation Pane"].document.location.href;
  28.  
  29.                 if (curNavLoc.indexOf(parent.parent.gsNavPane) == -1)
  30.                     window.frames["Navigation Pane"].document.location.replace(parent.parent.gsNavPane);
  31.             }
  32.             function CorrectTopicFrame()
  33.             {
  34.                 if (gbTopicLoaded || (gbMac && gbIE))
  35.                 {
  36.                     gnTryCount = 0;
  37.                     var curTopicLoc = window.frames["Topic Pane"].document.location.href;
  38.  
  39.                     if (curTopicLoc.indexOf(parent.parent.gsTopic) == -1)
  40.                         window.frames["Topic Pane"].document.location.replace(parent.parent.gsTopic);
  41.                 }
  42.                 else if (gbNav7 || gbMozilla)
  43.                 {
  44.                     if (gnTryCount < 10)
  45.                     {
  46.                         setTimeout("CorrectTopicFrame()",100);
  47.                     }
  48.                     gnTryCount++;
  49.                 }
  50.             }            
  51.             // Let the parent know we are in a "vertical" mode
  52.             parent.parent.SetVertical(true);
  53.         </script>
  54.     </head>
  55.     <script>
  56.         // Special handling for Netscape 4
  57.         if ((parent.parent.gsCurFramesetRow.substr(0, 2) == "0,") && (document.layers)) {
  58.             var sHtml = "";
  59.             sHtml += "<frameset id=\"Bottom Frame\" rows=\"100%, *";
  60.             sHtml += "\" frameborder=\"0\" border=\"0\">";
  61.             sHtml += "<frame name=\"Topic Pane\" noresize=\"yes\" marginwidth=\"0\" marginheight=\"0\" src=\"";
  62.             sHtml += parent.parent.gsTopic;
  63.             sHtml += "\" />";
  64.             sHtml += "<frame name=\"Navigation Pane\" noresize=\"yes\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src=\"wf_blank.htm\" />";
  65.             sHtml += "</frameset>";
  66.             document.write(sHtml);
  67.             setTimeout("CorrectTopicFrame()",100);
  68.         } else if (parent.parent.gsCurFramesetRow.substr(0, 2) == "0,") {
  69.             var sHtml = "";
  70.             sHtml += "<frameset id=\"Bottom Frame\" rows=\"";
  71.             sHtml += parent.parent.gsCurFramesetRow;
  72.             sHtml += "\" border=\"0\" frameborder=\"0\">";
  73.             sHtml += "<frame name=\"Navigation Pane\" noresize=\"yes\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src=\"wf_blank.htm\" />";
  74.             sHtml += "<frame name=\"Topic Pane\" noresize=\"yes\" bordercolor=\"gray\" src=\"";
  75.             sHtml += parent.parent.gsTopic;
  76.             sHtml += "\"/>";
  77.             sHtml += "</frameset>";
  78.             document.write(sHtml);
  79.             if (!(gbNav6 && !gbNav7))
  80.             {
  81.                 setTimeout("CorrectTopicFrame()",100);
  82.                 if (!gbWindows || gbOpera)
  83.                 {
  84.                     setTimeout("window.frames['Navigation Pane'].document.location.replace('wf_blank.htm')",100);
  85.                 }
  86.             }
  87.         } else {
  88.             var sHtml = "";
  89.             sHtml += "<frameset id=\"Bottom Frame\" rows=\"";
  90.             sHtml += parent.parent.gsCurFramesetRow;
  91.             sHtml += "\" frameborder=\"1\">";
  92.             sHtml += "<frame name=\"Navigation Pane\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"no\" src=\"";
  93.             sHtml += parent.parent.gsNavPane;
  94.             sHtml += "\" onload=\"CorrectFrame()\"/>";
  95.             sHtml += "<frame name=\"Topic Pane\" src=\"";
  96.             sHtml += parent.parent.gsTopic;
  97.             sHtml += "\" />";
  98.             sHtml += "</frameset>";
  99.             document.write(sHtml);
  100.             setTimeout("CorrectTopicFrame()",100);
  101.             if ((gbNav6 && !gbNav7) || gbSafari)
  102.             {
  103.                 setTimeout("window.frames['Navigation Pane'].document.location.replace(parent.parent.gsNavPane)",100);
  104.             }
  105.             if (gbNav4 && !gbNav6)
  106.             {
  107.                 onload = setTimeout("FrameLoaded()",100);
  108.             }
  109.         }
  110.     </script>
  111. </html>
  112.